const Article = require('../model/articleModel.js')

const Category = require('../tables/category')

exports.index = async (req, res) => {
  // const datas = await Article.findAll()
  const datas = await Article.findAll({
    include: Category,
  })
  res.json(datas)
}
exports.test = async (req, res) => {
  const datas = await Article.test()
  res.json(datas)
}
